package com.neusoft.yuejian_6.model;

import com.neusoft.yuejian_6.javabean.About;
import com.neusoft.yuejian_6.service.AboutService;

import retrofit2.Call;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

/**
 * Created by Q on 2017/11/1.
 */
public class AboutModel {
    private Retrofit retrofit;

    public AboutModel() {
        retrofit = new Retrofit.Builder()
                .baseUrl("http://10.0.2.2/neu1_yuejian/index.php/Api/")
                .addConverterFactory(GsonConverterFactory.create())
                .build();
    }

    //详情
    public Call<About> getAboutInfo(int about_id){
        AboutService aboutService=retrofit.create(AboutService.class);
        return aboutService.getAboutInfo(about_id);
    }

}